package com.carpedil.client.service.impl;

import com.carpedil.client.entity.ClientOrder;
import com.carpedil.client.mapper.ClientOrderMapper;
import com.carpedil.client.service.ClientOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** @author Administrator */
@Service
public class ClientOrderServiceImpl implements ClientOrderService {
  @Autowired ClientOrderMapper clientOrderMapper;

  @Override
  public List<ClientOrder> getOrderList() {
    return clientOrderMapper.list();
  }

  @Override
  public void save(ClientOrder clientOrder) {
    clientOrderMapper.save(clientOrder);
  }

  @Override
  public Integer updateStatusByOrderId(String orderId, Integer code) {
    return clientOrderMapper.updateStatusByOrderId(orderId, code);
  }
}
